package com.yykj.user.center.server.controller;

import com.yykj.common.vo.ResultVO;
import com.yykj.user.center.server.service.DoctorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/11/15 9:17
 */

@Api(tags = "医生详情相关接口")
@RestController
@RequestMapping("/api/doctorDetail")
@SuppressWarnings("unchecked")
@Slf4j
public class DoctorDetailController {
    @Autowired
    private DoctorService doctorService;


    @GetMapping("/evaluate")
    @ApiOperation(value = "评分、好评率、接诊量、响应时间、服务患者数量、今日挂号数量、今日问诊数量、待接诊数量、问诊中的数量", notes = "评分、好评率、接诊量、响应时间")
    public ResultVO evaluate(@RequestParam(value = "doctorId", required = true) String doctorId) {
        return ResultVO.success(doctorService.evaluate(doctorId));
    }
}
